﻿using System.Web;
using System.Web.SessionState;
using log4net;

namespace XProject.DataVisit.Handler
{
    /// <summary>
    /// 
    /// </summary>
    public class JsonHandler : IHttpHandler, IRequiresSessionState
    {
        protected static readonly ILog log = LogManager.GetLogger(typeof(JsonHandler));
        #region IHttpHandler Members

        bool IHttpHandler.IsReusable
        {
            get { return true; }
        }

        void IHttpHandler.ProcessRequest(HttpContext context)
        {
            log.Debug("Start Context :" + context.Request.RawUrl);
            IViewManager manager = new ViewManager(context);
            manager.Execute();
            log.Debug("End Context :" + context.Request.UserHostName);
        }

        #endregion

    }
}
